package com.sakura.probe.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pb_feedback")
@ApiModel(value="PbFeedback对象", description="用户反馈")
public class FeedBack implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "feedback_id", type = IdType.AUTO)
    private Long feedbackId;

    @ApiModelProperty(value = "反馈人的id")
    private Long userId;

    @ApiModelProperty(value = "反馈的内容")
    private String suggestion;

    @ApiModelProperty(value = "0-未读 1-已读")
    private Integer status;

    @ApiModelProperty(value = "提交时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date lastEditTime;

    @TableField(exist = false)
    private PersonInfo person;

    public FeedBack(){

    }

    public FeedBack(Long userId, String suggestion) {
        this.userId = userId;
        this.suggestion = suggestion;
    }
}
